﻿using System;
using System.Collections.Generic;
using System.Text;
using Excel = Microsoft.Office.Interop.Excel;

namespace lcs.BLL
{
    public class ExcelOp
    {
        private Excel.Application app = null;
        private Excel.Workbook workbook = null;
        private Excel.Worksheet worksheet = null;
        private Excel.Range workSheet_range = null;

      
        public void SetCellStyle
            (Microsoft.Office.Interop.Excel.Range range, int row, int column,int R,int G,int B)
        {
            range.Cells.Interior.Color = System.Drawing.Color.FromArgb(R,G,B).ToArgb();     //设置单元格的背景色
        }

    }
}
